import React, { Component } from "react";
import { HashRouter, Routes, Route } from "react-router-dom";
import Home from "../pages/Home/Home";
import MainHome from "../pages/Home/MainHome";
import FitstHome from "../pages/Home/FitstHome";
import AppointmentView from "../pages/Reserve/AppointmentView";
import SchedulingView from "../pages/Reserve/SchedulingView";
import Administratorsview from "../pages/System/administratorsview";
import ChangePassword from "../pages/System/ChangePassword";
import Messageview from "../pages/System/messageview";
import Roleview from "../pages/System/roleview";
import Titleview from "../pages/System/titleview";

export default class index extends Component {
  render() {
    return (
      <div>
        <HashRouter>
          <Routes>
            <Route path="/" element={<Home />} />
            <Route path="/mainhome" element={<MainHome />}>
              <Route path="fitsthome" element={<FitstHome />} />
              <Route path="appointmentview" element={<AppointmentView />} />
              <Route path="schedulingview" element={<SchedulingView />} />
              {/* 系统管理 */}
              <Route path="administratorsview" element={<Administratorsview />} />
              <Route path="changepassword" element={<ChangePassword />} />
              <Route path="messageview" element={<Messageview />} />
              <Route path="roleview" element={<Roleview />} />
              <Route path="titleview" element={<Titleview />} />
              {/* 系统管理 */}
            </Route>
          </Routes>
        </HashRouter>
      </div>
    );
  }
}
